package com.op.parcel.manage.modules.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.op.parcel.manage.modules.sys.entity.Permission;
import com.op.parcel.manage.modules.sys.vo.PermissionVO;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * 服务类
 *
 * @author xuan
 * @since 2019-01-09
 */
public interface IPermissionService extends IService<Permission> {
	@Cacheable(value="permissionsTree",key = "#id")
	List<PermissionVO> tree(String id);
	@Cacheable(value="allInterfacePermissions")
	List<Permission> getInterfacePermissions();
}
